﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ItemTemplateWizards.UI;
using System.Windows.Forms;

namespace ItemTemplateWizards
{
    class FeatureProjectTemplateWizard : Microsoft.VisualStudio.TemplateWizard.IWizard
    {
        #region IWizard Members

        public void BeforeOpeningFile(EnvDTE.ProjectItem projectItem)
        {
            
        }

        public void ProjectFinishedGenerating(EnvDTE.Project project)
        {
            
        }

        public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem)
        {
            
        }

        public void RunFinished()
        {
            
        }

        public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, Microsoft.VisualStudio.TemplateWizard.WizardRunKind runKind, object[] customParams)
        {
            FeatureInformation form = new FeatureInformation(false);
            DialogResult dr = form.ShowDialog();

            replacementsDictionary.Add("$featurescope$", form.FeatureScope.ToString());
        }

        public bool ShouldAddProjectItem(string filePath)
        {
            return true;
        }

        #endregion
    }
}
